package ccgl.com.model;

import java.util.Date;

/**
 * 订单表
 * 
 * @author Administrator
 * 
 */
public class MDd {
	private String id;
	private String ddh; // 订单号
	private String khxm; // 客户姓名
	private String khdh;// 客户电话
	private String xsr;// 销售人
	private float ddzj;// 订单总价
	private String userid; //用户id
	private Date ddsj;// 订单时间
	private Date gxsj;// 订单时间

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getXsr() {
		return xsr;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDdh() {
		return ddh;
	}

	public void setDdh(String ddh) {
		this.ddh = ddh;
	}

	public String getKhxm() {
		return khxm;
	}

	public void setKhxm(String khxm) {
		this.khxm = khxm;
	}

	public String getKhdh() {
		return khdh;
	}

	public void setKhdh(String khdh) {
		this.khdh = khdh;
	}

	public void setXsr(String xsr) {
		this.xsr = xsr;
	}

	public float getDdzj() {
		return ddzj;
	}

	public void setDdzj(float ddzj) {
		this.ddzj = ddzj;
	}

	
	public Date getDdsj() {
		return ddsj;
	}

	public void setDdsj(Date ddsj) {
		this.ddsj = ddsj;
	}
	
	

	public Date getGxsj() {
		return gxsj;
	}

	public void setGxsj(Date gxsj) {
		this.gxsj = gxsj;
	}

	public Object[] getPropertiesArray() {
		Object[] array = new Object[9];
		array[0] = id;
		array[1] = ddh;
		array[2] = khxm;
		array[3] = khdh;
		array[4] = xsr;
		array[5] = ddzj;
		array[6] = userid;
		array[7] = ddsj;
		array[8] = gxsj;
		return array;
	}

	public Object[] getPropertiesUpdateArray() {
		Object[] array = new Object[7];
		array[0] = ddh;
		array[1] = khxm;
		array[2] = khdh;
		array[3] = xsr;
		array[4] = ddzj;
		array[5] = ddsj;
		array[6] = gxsj;
		return array;
	}

	@Override
	public String toString() {
		return "MDd [id=" + id + ", ddh=" + ddh + ", khxm=" + khxm + ", khdh="
				+ khdh + ", xsr=" + xsr + ", ddzj=" + ddzj + ", userid="
				+ userid + ", ddsj=" + ddsj + "]";
	}
}
